<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<title>知云硬件管理云平台</title>
<link rel="stylesheet" type="text/css" href="{{ asset('/css/bootstrap/bootstrap.min.css') }}"/>
<link rel="stylesheet" type="text/css" href="{{ asset('/css/libs/font-awesome.css') }}"/>
<link rel="stylesheet" type="text/css" href="{{ asset('/css/libs/nanoscroller.css') }}"/>
<link rel="stylesheet" type="text/css" href="{{ asset('/css/compiled/theme_styles.css') }}"/>
<link href='//fonts.useso.com/css?family=Open+Sans:400,600,700,300|Titillium+Web:200,300,400' rel='stylesheet' type='text/css'>
<link type="image/x-icon" href="{{ asset('/favicon.png') }}" rel="shortcut icon"/>
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>
<![endif]-->
</head>
<body id="login-page" style="background: url('{{ asset('img/blur-background08.jpg') }}') no-repeat #fff;background-size: cover">
<div class="container">
	<div class="row">
		<div class="col-xs-12">
			<div id="login-box">
				<div id="login-box-holder">
					<div class="row">
						<div class="col-xs-12">
							<header id="login-header">
							<div id="login-logo">
								<!-- <img src="{{ asset('img/logo.png') }}" alt=""/> -->
								知云硬件管理云平台
							</div>
							</header>
							<div id="login-box-inner">
								<form action="{{ action('AdminController@loginCheck') }}" role="form" method="post">

									<div class="input-group">
										<span class="input-group-addon"><i class="fa fa-user"></i></span>
										<input class="form-control" name="username" id="username" type="text" value="{{ isset($usr)?$usr:'' }}" placeholder="{{ Session::has('username')?Session::get('username'):'请输入用户名' }}">
									</div>

									<div class="input-group">
										<span class="input-group-addon"><i class="fa fa-key"></i></span>
										<input type="password" class="form-control" name="password" id="password" value="{{ isset($pwd)?$pwd:'' }}" placeholder="{{ Session::has('password')?Session::get('password'):'请输入密码' }}">
									</div>

									<div id="remember-me-wrapper">
										<div class="row">
											<div class="col-xs-6">
												<div class="checkbox-nice">
													<input type="checkbox" name="remember" id="remember-me" checked="checked"/>
													<label for="remember-me">
														记住我
													</label>
												</div>
											</div>
											<a href="forgot-password.html" id="login-forget-link" class="col-xs-6">
												忘记密码?
											</a>
										</div>
									</div>
									<div class="row">
										<div class="col-xs-12">
											<button type="submit" class="btn btn-success col-xs-12">登录</button>
										</div>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script src="{{ asset('js/jquery.js') }}"></script>
<script src="{{ asset('js/bootstrap.js') }}"></script>
<script src="{{ asset('js/demo.js') }}"></script>
<script src="{{ asset('js/scripts.js') }}"></script>
<script type="text/javascript">
	
		$('#login-box-inner > input-group').removeClass('has-error');

		@if (Session::has('username'))

			$('#username').parent().addClass('has-error');
		
		@elseif (Session::has($key = 'password'))
			
			$('#password').parent().addClass('has-error');
		
		@endif
		
</script>
</body>
</html>